package ${pkg};

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.annotation.Column;
import com.baomidou.mybatisplus.annotation.TableName;

import com.zeno.soil.spring.boot.jdbc.pojo.BasePojo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * ${tableComment}
 *
 * @author ${author}
 * @date ${.now?date}
 */
@Data
@ToString(callSuper=true)
@EqualsAndHashCode(callSuper=true)
@Table(value = "`${tableName}`")
public class ${className} extends BasePojo {

<#list fieldInfos as field>
  /** ${field.comment} */
 <#if field.isPrimaryKey >
  @Id("${field.columnName}")
 <#else>
  @Column("${field.columnName}")
 </#if>
  private ${field.javaType} ${field.name};

</#list>
<#list fieldInfos as field>
 /** ${field.comment} */
 public static final String COL_${field.constantColumnName} = "${field.columnName}";
</#list>
}
